<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/email.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 内部发送邮件管理 | <font color=green><a href="__URL__/email">【内部邮件管理】</a></font><font color=green><a href="__URL__/out_email">【外部邮件管理】</a></font><font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div> <!--公共头部样式-->
     <div class="module_public_main">
        <table>
        <form action="__URL__/batch_del" method="post">
           <tr>
              <td colspan="8" align="center"><a href="__URL__/send_email">[发送内部邮件]</a>&nbsp;|&nbsp;<a href="__URL__/receive_email">[接收内部邮件]</a></td>
           </tr>
           
           <tr style="background:#F0F0F0;">
              <td width="5%" align="center">编号</td>
              <td align="center">邮件标题</td>
              <td align="center">发送时间</td>
              <td align="center">收件人</td>
              <td align="center">发送状态</td>
              <td align="center">携带附件</td>
              <td align="center">操作</td>
              <td align="center"><a href="#" id="all_check">全选/<a href="#" id="no_check">全不选</a></td>
           </tr>
           <?php if(is_array($email_info)): $k = 0; $__LIST__ = $email_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
              <td width="5%" align="center"><?php echo ($k); ?></td>
              <td><?php echo (substr($v["em_title"],0,21)); ?>...</td>
              <td align="center"><?php echo (date("Y-m-d H:m",$v["em_addtime"])); ?></td>
              <td align="center"><?php echo ($v["em_sname"]); ?></td>
              <?php if($v["em_status"] == 1): ?><td align="center"><font color=green>已发送</font></td>
              <?php else: ?>
              <td align="center"><font color=red>未发送</font></td><?php endif; ?>
              <?php if($v["em_filename"] == ''): ?><td align="center"><font color=red>无附件</font></td>
              <?php else: ?>
              <td align="center"><?php echo ($v["em_filename"]); ?></td><?php endif; ?>
              <td align="center">
                <a href="__URL__/send_email/action/continue/em_id/<?php echo ($v["em_id"]); ?>">继续发送</a> | 
                <a href="__URL__/delete_email/em_id/<?php echo ($v["em_id"]); ?>">删除记录</a>
              </td>
              <td align="center"><input type="checkbox" class="check_is" value="<?php echo ($v["em_id"]); ?>" name="check_is[]"/></td>
           </tr><?php endforeach; endif; else: echo "" ;endif; ?>
           <tr>
              <td colspan="7"  style="text-align:right"><?php echo ($fpage); ?></td>
              <td align="center"><input type="submit" value="删除选中项" class="_button"/></td>
           </tr> 
         </form>
        </table>
     </div>
 <!--公共尾部样式-->